package eerbaar.action.internal.lib.position;

public class PositionGeneratorFactory {

    public static IPositionGenerator create(String name) {

        IPositionGenerator result = null;

        if (name == null) {

            result = new RandomPositionGenerator();
        } else if ("center".equals(name)) {

            result = new CenterPositionGenerator();
        } else {

            result = new RandomPositionGenerator();
        }

        return result;
    }

    public static IPositionGenerator createRandom() {

        return new RandomPositionGenerator();
    }
}
